package com.sy.olddriver.dto;

/**
 * 前后端交互的统一返回结果
 *
 * @author Administrator
 */
public class Result {
    /**
     * 表示操作是否成功
     */
    private boolean success = true;
    /**
     * 如果失败则携带错误信息
     */
    private String errMsg;
    /**
     * 操作完成以后携带一些额外的数据
     */
    private Object data;

    public Object getData() {
        return data;
    }

    public Result setData(Object data) {
        this.data = data;
        return this;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
